package fei.zhou.springboot4.demo2;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 描述该类- JPA
 *
 * @author zhoufei
 * @class: DemoService
 * @date 2021/1/20 11:42
 * @Verson 1.0 -2021/1/20 11:42
 * @see
 */

@RestController
public class DemoController {
    @Autowired
    private DemoService demoService;
    
    @RequestMapping("t1")
    public Object t1() {
        for (int i = 1; i < 100; i++) {
            demoService.asyncTask1(i);
        }
        return "ok";
    }
}